import request from '@/utils/request'
import store from '@/store'

const customer_id = store.getters.customer_id

export function getList(query) {
  return request({
    url: '/black-data-source/' + customer_id,
    method: 'get',
    params: query
  })
}

export function create(data) {
  data.customer_id = customer_id
  return request({
    url: '/black-data-source/new',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/black-data-source/update',
    method: 'post',
    data
  })
}
